
//
//  guanYuView.m
//  yiyou
//
//  Created by tangtangchitangtang on 2017/8/18.
//  Copyright © 2017年 tangtangchitangtang. All rights reserved.
//

#import "guanYuView.h"

@implementation guanYuView

-(void)creatView{
    self.backgroundColor=_LightGrey;
    
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    
    UIImageView *imagView=[UIImageView new];
    [self addSubview:imagView];
    [imagView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(0);
        make.top.mas_equalTo(180*_mainHeight);
        make.width.height.mas_equalTo(150*_mainHeight);
    }];
    imagView.image=[UIImage imageNamed:@"icon1024"];
    
    UILabel *banBenLabel=[UILabel new];
    [self addSubview:banBenLabel];
    [banBenLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(0);
        make.top.mas_equalTo(imagView.mas_bottom).mas_equalTo(90);
    }];
    banBenLabel.text=[NSString stringWithFormat:@"版本号:v%@",app_Version];
    banBenLabel.textColor=ColorWithRGB(70, 70, 70);
    banBenLabel.font=[UIFont systemFontOfSize:20];
    
    
    UILabel *timeLabel=[UILabel new];
    [self addSubview:timeLabel];
    [timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(0);
        make.bottom.mas_equalTo(-150);
    }];
    timeLabel.text=@"Copyright @ 2017-2020";
    timeLabel.font=[UIFont systemFontOfSize:14];
    timeLabel.textColor=ColorWithRGB(70, 70, 70);
    
    UILabel *gongSiLabel=[UILabel new];
    [self addSubview:gongSiLabel];
    [gongSiLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(0);
        make.top.mas_equalTo(timeLabel.mas_bottom).mas_equalTo(7);
    }];
    gongSiLabel.text=@"独角兽律师事务所";
    gongSiLabel.font=[UIFont systemFontOfSize:14];
    gongSiLabel.textColor=ColorWithRGB(70, 70, 70);
    
   }

@end
